package com.ruoyi.tzzl.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 提现申请对象 wz_withdrawal_record
 * @author by caoyong
 * @date 2022/11/17
 **/
@Data
@Accessors(chain = true)
@NoArgsConstructor
@TableName("wz_withdrawal_record")
public class WzWithdrawalRecord {

    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(value = "id", type = IdType.AUTO) //id自动递增
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private Long phone;

    /** 用户姓名 */
    @Excel(name = "用户姓名")
    private String name;

    /** 提现类型（1-红娘提现 2-团队提现） */
    @Excel(name = "提现类型", readConverterExp = "1=-红娘提现,2=-团队提现")
    private String withdrawalType;

    /** 提现方式(1-支付宝提现 2-微信提现 3-银行卡提现) */
    @Excel(name = "提现方式(1-支付宝提现 2-微信提现 3-银行卡提现)")
    private String withdrawalWay;

    /** 提现金额 */
    @Excel(name = "提现金额")
    private Double money;

    /** 手续费 */
    @Excel(name = "手续费")
    private Double poundage;

    /** 实际到账 */
    @Excel(name = "实际到账")
    private Double toTheaccount;

    /** 云账户流水号 */
    @Excel(name = "云账户流水号")
    private String ref;

    /** 订单状态码 */
    @Excel(name = "订单状态码")
    private String orderStatus;

    /** 提现状态（0-已完成 1-待审核 2-审核失败 3-驳回 4-打款失败） */
    @Excel(name = "提现状态", readConverterExp = "0=-已完成,1=-待审核,2=-审核失败 3-驳回")
    private String withdrawalState;

    /** 审核失败原因 */
    @Excel(name = "审核失败原因")
    private String causeFailure;

    /** 创建时间 */
    @Excel(name = "创建时间" , width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 变动时间 */
    @Excel(name = "变动时间" , width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /** 删除标志（0代表存在 2代表删除） */
    @TableLogic
    private String delFlag;

}
